"""
配置文件
"""
import os

# 智谱清言API配置
API_KEY = 'a1ffd117633d43c1b5d75f9261468910.u1QVyQm8QyYbAFzB'  # 从环境变量获取，如果没有则使用空字符串
BASE_URL = 'https://open.bigmodel.cn/api/paas/v4'

# 数据库配置
DATABASE_PATH = 'ai_assistant.db'

# 文件上传配置
UPLOAD_FOLDER = 'uploads'
MAX_FILE_SIZE = 16 * 1024 * 1024  # 16MB
ALLOWED_EXTENSIONS = {'pdf', 'docx', 'pptx', 'txt', 'md'}

# 生成的资源保存路径
GENERATED_FOLDER = 'generated'
AUDIO_FOLDER = 'audio'

